package org.openshp.unifiedweb.awebtest;

import org.openshp.unifiedweb.api.IWebFactory;
import org.openshp.unifiedweb.api.WebComponent;
import org.openshp.unifiedweb.api.interfaces.Component;
import org.openshp.unifiedweb.api.interfaces.EntryPoint;
import org.openshp.unifiedweb.api.interfaces.Label;
import org.openshp.unifiedweb.api.interfaces.Panel;

public class HelloWord implements EntryPoint {
	
	public HelloWord(){	}
	
	public Component createMainComponent(WebComponent wc) {
		IWebFactory webFactory = wc.getWebFactory();
		
		Label l1 = webFactory.createLabel("MyTestLabel");
		Panel p1 = webFactory.createPanel();
		p1.addComponent(l1);
		
		return p1;
	}

}
